package com.campus.common.vo;

import java.io.Serializable;

public class Product implements Serializable {
    private int pid;     // 主键：商品编号
    private String pname;   // 名称
    private double price;   // 价格 >= 0
    private int stock;      // 库存 >= 0
    private String desc;    // 描述（可空）

    private String imageUrl; // 图片路径或URL
    private String category; // 商品类别：食品、文具、日用品等
    private int status; // 1=上架，0=下架
    private int hot; // 1=最近热卖
    private int newP; // 1=最近上新
    private int expireSoon; // 1=临期
    private String expireDate; // 保质期
    
    public Product() {}
    public Product(int pid,String pname,double price,int stock,String desc,String imageUrl,String category,
    		int status, int hot, int newP, int expireSoon, String expireDate) {
        this.pid = pid; this.pname = pname; this.price = price; this.stock = stock; 
        this.desc = desc;this.imageUrl=imageUrl;this.category=category; this.status = status;
        this.hot = hot; this.newP = newP; this.expireSoon = expireSoon; this.expireDate = expireDate;
    }

	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getHot() {
		return hot;
	}
	public void setHot(int hot) {
		this.hot = hot;
	}
	public int getNewP() {
		return newP;
	}
	public void setNewP(int newP) {
		this.newP = newP;
	}
	public int getExpireSoon() {
		return expireSoon;
	}
	public void setExpireSoon(int expireSoon) {
		this.expireSoon = expireSoon;
	}
	public String getExpireDate() {
		return expireDate;
	}
	public void setExpireDate(String expireDate) {
		this.expireDate = expireDate;
	}
    
}
